//
//  TipInfoToolBar.h
//  TipsProject
//
//  Created by Suny on 15/6/4.
//  Copyright (c) 2015年 Suny. All rights reserved.
//

#import "MGBox.h"
#import "TipInfo.h"
#import "TipAbstract.h"

typedef NS_ENUM(NSInteger,TipInfoToolBarItemTag)
{
	TipInfoToolBarItemTagCommon = 1000,
	TipInfoToolBarItemTagPrise = 2000,
	TipInfoToolBarItemTagCollection = 3000
};


@interface TipInfoToolBarItem : MGBox

@property (nonatomic,strong)NSString *title;
@property (nonatomic,strong)UIImage  *image;

@property (nonatomic,strong)UILabel *titleLabel;

@property (nonatomic, assign) BOOL selected;
@property (nonatomic, copy) NSString *normalImageName;
@property (nonatomic, copy) NSString *selectedImageName;

@end

@class TipInfoToolBar;
@protocol TipInfoToolBarProtocol  <NSObject>

@optional
- (void)tipInfoToolBar:(TipInfoToolBar *)toolBar clickView:(TipInfoToolBarItem *)item;

@end

@interface TipInfoToolBar : MGBox
@property (nonatomic, weak)TipInfo *tipInfo;
@property (nonatomic, weak)TipAbstract *abstract;


@property (nonatomic, weak)id <TipInfoToolBarProtocol> toolBarDelegate;
+ (TipInfoToolBar *)tipInfoToolBarWithTipInfo:(TipInfo *)tipInfo andSize:(CGSize)size         ;

+ (TipInfoToolBar *)tipInfoToolBarWithAbstractList:(TipAbstract *)abstract andSize:(CGSize)size         ;


- (void)reloadDataByTipInfo:(TipInfo *)tipInfo;

- (void)reloadDataByAbstract:(TipAbstract *)abstract;


@end
